import { AuthGuard } from "@/components/auth-guard"
import { DashboardLayout } from "@/components/dashboard-layout"
import { AgentBuilderV3 } from "@/components/agent-builder-v3"

export default async function EditAgentPage({ params }: { params: Promise<{ id: string }> }) {
  const { id } = await params

  return (
    <AuthGuard>
      <DashboardLayout>
        <AgentBuilderV3 agentId={id} />
      </DashboardLayout>
    </AuthGuard>
  )
}
